package cn.shujuhai.workflow.service;

import cn.shujuhai.common.pluging.data.ResultVo;
import cn.shujuhai.workflow.domain.Form;
import cn.shujuhai.workflow.domain.FormData;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author ZhangDeZhong
 * @description 针对表【form】的数据库操作Service
 * @createDate 2025-03-11 09:40:20
 */
public interface FormDataService extends IService<FormData> {

    ResultVo<?> getFormDataList(Long formId, Object formData, int pageNum, int pageSize);

    ResultVo<?> addFormData(FormData formData);

    ResultVo<?> deleteFormData(Long formDataId);

    ResultVo<?> uploadImg(MultipartFile file, Long formId);

    ResultVo<?> uploadFile(MultipartFile file, Long formId);

    ResultVo<?> uploadIceImg(MultipartFile[] files, Long formId);

    ResultVo<?> removeBatchFormData(List<Long> formDataIds);

}
